home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_21751.txt < prev    next >
Text File  |  1991-02-27  |  2KB  |  35 lines

  1. -- card: 21751 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 6
  9. ----- text -----
  10. 8.  Standard Function Libraries
  11.  
  12. -- part contents for background part 7
  13. ----- text -----
  14. 186
  15.  
  16. -- part contents for background part 4
  17. ----- text -----
  18. C's efficiency is granted in part by its stripped-down appearance.  At the same time, C is made extremely powerful and flexible by the addition of STANDARD FUNCTION LIBRARIES for input/output, mathematics, string manipulation, and memory management.  Programs making use solely of these functions are generally portable    (or can be made so with judicious use of conditional compilation*).  In Think C 4.0 the ANSI library contains all these standard functions.  (Previous versions had separate stdio, math, strings, and storage libraries.)
  19.  
  20. In addition, many C compilers provide specialized function libraries appropriate to the intended hardware or application area.  These further enhance the language's power while compromising portability.  In TC, the non-standard 'console' library provides the ccommand() function used to simulate UNIX-style command-line processing.  TC's MacTraps library actually consists of calls to the Macintosh ROM          "Toolbox" routines which accomplish the graphical user interface.  This "library" allows TC programmers to call these routines as though they were C functions.  (These functions are declared automatically in the "precompiled header" MacHeaders.)
  21.  
  22. Programmers may also create their own libraries of related, frequently-used routines.
  23.  
  24.  
  25. -- part contents for background part 29
  26. ----- text -----
  27. 52411
  28.  
  29. -- part contents for background part 27
  30. ----- text -----
  31. Conditional compilation
  32.  
  33. -- part contents for background part 20
  34. ----- text -----
  35. Conditional compilation - p180